package com.hancher.common.androidutil;

import android.app.Activity;
import android.view.WindowManager;

public class ScreenAlwaysLightUtil {
    public static void setOn(Activity activity) {
        activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    }

    public static void setOff(Activity activity) {
        activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    }
}
